package com.dragon.logical.service.wechat;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dragon.repository.entity.WechatArticle;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.Map;

/**
 * <p>
 * 微信文章发布表 服务类
 * </p>
 *
 * @author sy
 * @since 2023-11-30
 */
public interface IWechatArticleService extends IService<WechatArticle> {

    Page<WechatArticle> selectArticle(String title, Integer status, Integer page, Integer limit);

    WechatArticle getArticleOne(Integer id);

    void addArticle(WechatArticle wechatArticle);

    void updateArticle(WechatArticle wechatArticle);

    void deleteArticle(Integer id);

    void releaseArticle(Integer id);

    String getArticleStatus(Integer id, String publishId);

    Map<String,String> uploadFile(MultipartFile file) throws IOException;
}
